"""
    员工信息删除接口层
"""
import requests

from config import BASE_URL
from tools.get_header import get_header


class EmpDeleteApi:
    @classmethod
    def emp_delete(cls,emp_id):
        url= f"emps/{emp_id}"
        delete_url = BASE_URL+url
        resp = requests.delete(delete_url,headers=get_header())
        return resp

if __name__ == '__main__':
    print(EmpDeleteApi.emp_delete(25).json())
